<template>
  <div v-if="showFab" class="ai-fab" @click="$router.push('/aiAssistant')">
    <i class="fa fa-commenting-o"></i>
  </div>
</template>

<script>
export default {
  name: 'AiFab',
  computed: {
    showFab() {
      const hidden = new Set(['/aiAssistant', '/login', '/register']);
      return !hidden.has(this.$route.path);
    }
  }
}
</script>

<style scoped>
.ai-fab {
  position: fixed;
  right: 16px;
  top: 40%;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: #0097FF;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  z-index: 3000;
  cursor: pointer;
}
.ai-fab i { font-size: 22px; }
@media (max-width:480px){ .ai-fab{ right:10px; width:48px; height:48px; } }
</style>